hip.api.net.utils

Undocumented in source.

Members

Aliases

fromNetworkBytes
alias fromNetworkBytes = toNetworkBytes

Same implementation, must go back from big to little or kepe it as it is

fromNetworkBytesInPlace
alias fromNetworkBytesInPlace = toNetworkBytesInPlace
Undocumented in source.

Functions

copyIntoMemory
void copyIntoMemory(T struc, ubyte[] memory)
Undocumented in source. Be warned that the author may not have intended to support it.
getSendTypeSize
uint getSendTypeSize(T input)
Undocumented in source. Be warned that the author may not have intended to support it.
getSendTypeSize
uint getSendTypeSize(T input)
Undocumented in source. Be warned that the author may not have intended to support it.
getSendTypeSize
uint getSendTypeSize(T input)
Undocumented in source. Be warned that the author may not have intended to support it.
getSendTypeSize
uint getSendTypeSize(T input)
Undocumented in source. Be warned that the author may not have intended to support it.
hasDynamicArray
bool hasDynamicArray()
Undocumented in source. Be warned that the author may not have intended to support it.
hasDynamicArray
bool hasDynamicArray()

Used for determining if the data can be copied to stack and sent. This is the most efficient way to send data since it won't allocate on frame.

hton
T hton(T data)
Undocumented in source. Be warned that the author may not have intended to support it.
htonl
uint htonl(uint x)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
htons
ushort htons(ushort x)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
isLittleEndian
bool isLittleEndian()
Undocumented in source. Be warned that the author may not have intended to support it.
ntohl
uint ntohl(uint x)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
ntohs
ushort ntohs(ushort x)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sizeofTypes
size_t sizeofTypes()
Undocumented in source. Be warned that the author may not have intended to support it.
swapEndian
ubyte[N] swapEndian(ubyte[N] bytes)
Undocumented in source. Be warned that the author may not have intended to support it.
swapEndian
ubyte[] swapEndian(ubyte[] bytes)
Undocumented in source. Be warned that the author may not have intended to support it.
swapEndianInPlace
void swapEndianInPlace(ubyte[] bytes)
Undocumented in source. Be warned that the author may not have intended to support it.
toBytes
ubyte[sizeofTypes!T] toBytes(T input)
Undocumented in source. Be warned that the author may not have intended to support it.
toBytes
ubyte[] toBytes(T input)
Undocumented in source. Be warned that the author may not have intended to support it.
toBytes
ubyte[N] toBytes(T input)
Undocumented in source. Be warned that the author may not have intended to support it.
toNetwork
ubyte[N] toNetwork(T data)
Undocumented in source. Be warned that the author may not have intended to support it.
toNetworkBytes
ubyte[] toNetworkBytes(ubyte[] input)
Undocumented in source. Be warned that the author may not have intended to support it.
toNetworkBytes
ubyte[N] toNetworkBytes(T input)
Undocumented in source. Be warned that the author may not have intended to support it.
toNetworkBytesInPlace
void toNetworkBytesInPlace(ubyte[] bytes)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta